package com.csw02;

import com.util.JDBCUtil02;

import java.sql.Connection;
import java.sql.ResultSet;

public class SelectMysql01 {
    public static void main(String[] args) throws Exception{
        String sql="select * from student";
        ResultSet rs = JDBCUtil02.selectALL(sql);
        while (rs.next()){
            String string = rs.getString(1);
            System.out.print(string);
            String string1 = rs.getString(2);
            System.out.println(string1);
        }
        JDBCUtil02.closeALL();
    }
}
